package com.web_bloks.user.client;

import com.google.gwt.core.client.GWT;


/**
 * 
 * @author Jean-Lou Dupont
 *
 */
public class UserManager {

	static User current = null;
	
	protected UserManager() {
	}
	
	public void setCurrentUser(User u) {
		current = u;
	}
	
	public User getCurrentUser() {
		if ( null == current ) {
			current = GWT.create(User.class);
		}
		return current;
	}
	
}
